package com.google.jessewilson.codesearch.ide;

import com.google.jessewilson.codesearch.api.Query;
import ca.odell.glazedlists.EventList;

import java.util.List;

/**
 * @author jessewilson
 */
public interface QueryHistory {

  /**
   * Get the queries performed over time, newest at the head of the list.
   */
  EventList<Query> getElements();

  /**
   * Returns a snapshot of the query history.
   */
  List<Query> getSnapshot();

  void postQuery(Query query);
}
